<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>星际登录</title>
    <style>
        body {
            margin: 0;
            height: 100vh;
            background: url('https://images.unsplash.com/photo-1506318137071-a8e063b4bec0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center/cover;
            font-family: 'Arial', sans-serif;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .space-login {
            width: 380px;
            padding: 40px;
            background: rgba(0, 0, 30, 0.7);
            border-radius: 15px;
            box-shadow: 0 0 30px rgba(65, 105, 225, 0.5);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(100, 149, 237, 0.3);
            animation: float 6s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
        
        .stars {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
        
        .star {
            position: absolute;
            background: white;
            border-radius: 50%;
            animation: twinkle var(--duration) infinite ease-in-out;
        }
        
        @keyframes twinkle {
            0%, 100% { opacity: 0.2; }
            50% { opacity: 1; }
        }
        
        h2 {
            color: #6495ed;
            text-align: center;
            margin-bottom: 30px;
            font-size: 28px;
            text-shadow: 0 0 10px rgba(100, 149, 237, 0.7);
        }
        
        .input-group {
            margin-bottom: 25px;
            position: relative;
        }
        
        input {
            box-sizing: border-box;
            width: 100%;
            padding: 15px 20px;
            background: rgba(0, 0, 50, 0.5);
            border: 1px solid #4169e1;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        input:focus {
            outline: none;
            border-color: #7b68ee;
            box-shadow: 0 0 15px rgba(123, 104, 238, 0.5);
        }
        
        label {
            position: absolute;
            left: 20px;
            top: 15px;
            color: rgba(255, 255, 255, 0.7);
            transition: all 0.3s;
            pointer-events: none;
        }
        
        input:focus + label,
        input:valid + label {
            top: -10px;
            left: 10px;
            font-size: 12px;
            color: #7b68ee;
            background: rgba(0, 0, 30, 0.9);
            padding: 0 5px;
        }
        
        button {
            width: 100%;
            padding: 15px;
            background: linear-gradient(45deg, #4169e1, #7b68ee);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(65, 105, 225, 0.3);
        }
    </style>
</head>
<body>
    <div class="stars" id="stars"></div>
    
    <div class="space-login">
        <h2>星际通行证</h2>
        <div class="input-group">
            <input type="text" id="username" required>
            <label for="username">宇航员ID</label>
        </div>
        <div class="input-group">
            <input type="password" id="password" required>
            <label for="password">量子密码</label>
        </div>
        <button>启动登录序列</button>
    </div>

    <script>
        // 创建星空背景
        const starsContainer = document.getElementById('stars');
        for (let i = 0; i < 100; i++) {
            const star = document.createElement('div');
            star.classList.add('star');
            star.style.width = `${Math.random() * 3}px`;
            star.style.height = star.style.width;
            star.style.left = `${Math.random() * 100}%`;
            star.style.top = `${Math.random() * 100}%`;
            star.style.setProperty('--duration', `${2 + Math.random() * 3}s`);
            starsContainer.appendChild(star);
        }
    </script>
</body>
</html>